/*
Adept MobileRobots Robotics Interface for Applications (ARIA)
Copyright (C) 2004-2005 ActivMedia Robotics LLC
Copyright (C) 2006-2010 MobileRobots Inc.
Copyright (C) 2011-2015 Adept Technology, Inc.
Copyright (C) 2016-2018 Omron Adept Technologies, Inc.

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

If you wish to redistribute ARIA under different terms, contact 
Adept MobileRobots for information about a commercial version of ARIA at 
robots@mobilerobots.com or 
Adept MobileRobots, 10 Columbia Drive, Amherst, NH 03031; +1-603-881-7960
*/
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.8
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.mobilerobots.Aria;

public class ArSystemStatus {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  public ArSystemStatus(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(ArSystemStatus obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        AriaJavaJNI.delete_ArSystemStatus(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public static void startPeriodicUpdate(int refreshFrequency, ArLog.LogLevel logLevel) {
    AriaJavaJNI.ArSystemStatus_startPeriodicUpdate__SWIG_0(refreshFrequency, logLevel.swigValue());
  }

  public static void startPeriodicUpdate(int refreshFrequency) {
    AriaJavaJNI.ArSystemStatus_startPeriodicUpdate__SWIG_1(refreshFrequency);
  }

  public static void startPeriodicUpdate() {
    AriaJavaJNI.ArSystemStatus_startPeriodicUpdate__SWIG_2();
  }

  public static void stopPeriodicUpdate() {
    AriaJavaJNI.ArSystemStatus_stopPeriodicUpdate();
  }

  public static void runRefreshThread(int refreshFrequency) {
    AriaJavaJNI.ArSystemStatus_runRefreshThread__SWIG_0(refreshFrequency);
  }

  public static void runRefreshThread() {
    AriaJavaJNI.ArSystemStatus_runRefreshThread__SWIG_1();
  }

  public static double getCPU() {
    return AriaJavaJNI.ArSystemStatus_getCPU();
  }

  public static double getCPUPercent() {
    return AriaJavaJNI.ArSystemStatus_getCPUPercent();
  }

  public static String getCPUPercentAsString() {
    return AriaJavaJNI.ArSystemStatus_getCPUPercentAsString();
  }

  public static long getUptime() {
    return AriaJavaJNI.ArSystemStatus_getUptime();
  }

  public static long getProgramUptime() {
    return AriaJavaJNI.ArSystemStatus_getProgramUptime();
  }

  public static double getUptimeHours() {
    return AriaJavaJNI.ArSystemStatus_getUptimeHours();
  }

  public static String getUptimeHoursAsString() {
    return AriaJavaJNI.ArSystemStatus_getUptimeHoursAsString();
  }

  public static ArRetFunctor_Double getCPUPercentFunctor() {
    long cPtr = AriaJavaJNI.ArSystemStatus_getCPUPercentFunctor();
    return (cPtr == 0) ? null : new ArRetFunctor_Double(cPtr, false);
  }

  public static ArRetFunctor_Double getUptimeHoursFunctor() {
    long cPtr = AriaJavaJNI.ArSystemStatus_getUptimeHoursFunctor();
    return (cPtr == 0) ? null : new ArRetFunctor_Double(cPtr, false);
  }

  public static SWIGTYPE_p_ArRetFunctorT_unsigned_long_t getUptimeFunctor() {
    long cPtr = AriaJavaJNI.ArSystemStatus_getUptimeFunctor();
    return (cPtr == 0) ? null : new SWIGTYPE_p_ArRetFunctorT_unsigned_long_t(cPtr, false);
  }

  public static SWIGTYPE_p_ArRetFunctorT_unsigned_long_t getProgramUptimeFunctor() {
    long cPtr = AriaJavaJNI.ArSystemStatus_getProgramUptimeFunctor();
    return (cPtr == 0) ? null : new SWIGTYPE_p_ArRetFunctorT_unsigned_long_t(cPtr, false);
  }

  public static int getWirelessLinkQuality() {
    return AriaJavaJNI.ArSystemStatus_getWirelessLinkQuality();
  }

  public static int getWirelessLinkSignal() {
    return AriaJavaJNI.ArSystemStatus_getWirelessLinkSignal();
  }

  public static int getWirelessLinkNoise() {
    return AriaJavaJNI.ArSystemStatus_getWirelessLinkNoise();
  }

  public static int getWirelessDiscardedPackets() {
    return AriaJavaJNI.ArSystemStatus_getWirelessDiscardedPackets();
  }

  public static int getWirelessDiscardedPacketsBecauseNetConflict() {
    return AriaJavaJNI.ArSystemStatus_getWirelessDiscardedPacketsBecauseNetConflict();
  }

  public static int getMTXWirelessLink() {
    return AriaJavaJNI.ArSystemStatus_getMTXWirelessLink();
  }

  public static int getMTXWirelessQuality() {
    return AriaJavaJNI.ArSystemStatus_getMTXWirelessQuality();
  }

  public static int getMTXWirelessIpAddress1() {
    return AriaJavaJNI.ArSystemStatus_getMTXWirelessIpAddress1();
  }

  public static int getMTXWirelessIpAddress2() {
    return AriaJavaJNI.ArSystemStatus_getMTXWirelessIpAddress2();
  }

  public static int getMTXWirelessIpAddress3() {
    return AriaJavaJNI.ArSystemStatus_getMTXWirelessIpAddress3();
  }

  public static int getMTXWirelessIpAddress4() {
    return AriaJavaJNI.ArSystemStatus_getMTXWirelessIpAddress4();
  }

  public static String getMTXWirelessIpAddressString() {
    return AriaJavaJNI.ArSystemStatus_getMTXWirelessIpAddressString();
  }

  public static ArRetFunctor_Int getWirelessLinkQualityFunctor() {
    long cPtr = AriaJavaJNI.ArSystemStatus_getWirelessLinkQualityFunctor();
    return (cPtr == 0) ? null : new ArRetFunctor_Int(cPtr, false);
  }

  public static ArRetFunctor_Int getWirelessLinkNoiseFunctor() {
    long cPtr = AriaJavaJNI.ArSystemStatus_getWirelessLinkNoiseFunctor();
    return (cPtr == 0) ? null : new ArRetFunctor_Int(cPtr, false);
  }

  public static ArRetFunctor_Int getWirelessLinkSignalFunctor() {
    long cPtr = AriaJavaJNI.ArSystemStatus_getWirelessLinkSignalFunctor();
    return (cPtr == 0) ? null : new ArRetFunctor_Int(cPtr, false);
  }

  public static ArRetFunctor_Int getMTXWirelessLinkFunctor() {
    long cPtr = AriaJavaJNI.ArSystemStatus_getMTXWirelessLinkFunctor();
    return (cPtr == 0) ? null : new ArRetFunctor_Int(cPtr, false);
  }

  public static ArRetFunctor_Int getMTXWirelessQualityFunctor() {
    long cPtr = AriaJavaJNI.ArSystemStatus_getMTXWirelessQualityFunctor();
    return (cPtr == 0) ? null : new ArRetFunctor_Int(cPtr, false);
  }

  public static void invalidate() {
    AriaJavaJNI.ArSystemStatus_invalidate();
  }

  public static void refresh() {
    AriaJavaJNI.ArSystemStatus_refresh();
  }

  public ArSystemStatus() {
    this(AriaJavaJNI.new_ArSystemStatus(), true);
  }

}
